//
//  ChatProtocol.h
//  供销宝
//
//  Created by 金晶 on 17/3/17.
//  Copyright © 2017年 金晶. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "RecentChat.h"
#import "ChatMessage.h"
#import "Protocol.h"

@interface ChatProtocol : NSObject <ChatDelegate>

@property (nonatomic,weak) id<ChatDelegate> chatDelegate;

@property (nonatomic,strong)RecentChat *rcChat;


@property (nonatomic,copy) void(^chatSourceBlock)(NSMutableArray *);

//获取和friendid的葱下标为count开始的一个page
- (NSMutableArray *)queryChatList:(NSString *)friendid curCount:(NSInteger)count;
/**
 *  聊天页面
 */
- (void)uploadStreamarameter:(NSDictionary *)parameter
              withStreamType:(id)stream;

- (void)senderText:(NSDictionary *)message;

- (void)uploadMessageStatus:(NSString *)friendid;

//加载缓存时是否显示小菊米
- (BOOL)isShowActivityView:(NSInteger)start;


@end
